package java69.work720;

public class Car {
    protected String brand;
    protected double price;
    protected String type;

    public Car() {
    }

    public Car(String brand, double price, String type) {
        this.brand = brand;
        this.price = price;
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    protected void  changeSpeed(){
        System.out.println("我能变速");
    }
    protected void driver(){
        System.out.println("能正常行驶");
    }
    protected void  show(){
        System.out.println(getBrand()+"牌汽车，价格："+getPrice()+"，型号："+getType());
        changeSpeed();
        driver();

    }


}
